This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
AIX, HP-UX, i5/OS, Linux, OS/390, OS/400, Solaris, Windows
 Doc Number: 
1220275
 Date: 
11/07/2008
 Problem
The Domino console log can have its size limited with the Notes.ini parameter 'Console_Log_Max_Kbytes'.
What about the log.nsf database?
 Content
Unlike the Domino Console log, the size of the 'log.nsf' cannot be limited by a setting or a Notes.ini parameter to a given size.
However, it can be kept under control:
The size of the 'log.nsf' is dependant on how much is logged to it (various logging levels) and for how long (number of days retained).
To keep the size under control, it is a balance between how much space is made available for the 'log.nsf', and how much information is required to be logged and for how long.
1) There are three levers to control the size of the log.nsf:
- the 'days' value of the 'log' parameter in the notes.ini
- a possible log filter; see Admin Help (Creating log filters)
- the following logging settings:
+ 'Passthru_LogLevel'
The "Retriever log level" field on the Server Tasks - Web Retriever tab of the Server document.
2) In addition, the following can be checked:
- that 'Don't maintain unread marks' is checked in the database properties, together with ensuring that other properties are under control (maintain 'LastAccessed', limit entries in '$UpdatesBy' & '$Revisions' fields etc.)
- perform a "compact -b" on 'log.nsf' daily after 4 AM (when the purging occurs) to compact white space for re-useability.
- after heavy logging for troubleshooting purposes, turn the relevant debugging off, use "compact (-c or -B)" to recover database space, or even create a new 'log.nsf' (shutdown Domino, rename 'log.nsf', start Domino) if really necessary, to resume normal operations Domino logging.
3) Since Notes/Domino 6, there is a way to log high levels for longer periods (volume+length) without seriously sacrificing performance and risks: in order to keep older log information out of the live log.nsf, Server Archiving can be used.
Because the log.nsf is a live 'system' database that is frequently updated, it is not the best candidate for monstrous sizes (performance impact, log integrity risk increased, etc.)
One way of keeping more worth of log is to use archiving (hence to an archive databse as opposed to a live database). Then because the log archive database is not as exposed as the log itself, you can keep a few weeks worth of data there , that you can full text index (FTI), and then set to automatically purge the documents after a few weeks.
The server archiving could be scheduled before the daily 'log.nsf' purging which occurs - by default at 4 AM - by defining the archiving settings (Database Properties) and scheduling "compact log.nsf -A" at 3 AM, for instance.